package com.steerinfo.dil.model;

import com.steerinfo.framework.model.IBasePO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.Date;

@ApiModel(value="日志表;外键ID和外键类型为查询参数。")
public class LogResult implements IBasePO<BigDecimal> {
    /**
     * 主键序列号:SEQ_LOG_RESULT(LOG_ID,DECIMAL,38)
     */
    @ApiModelProperty(value="主键序列号:SEQ_LOG_RESULT",required=true)
    private BigDecimal logId;

    /**
     * 日志内容(LOG_CONTENT,VARCHAR,510)
     */
    @ApiModelProperty(value="日志内容",required=true)
    private String logContent;

    /**
     * 外键ID(FOREIGN_KEY_ID,DECIMAL,38)
     */
    @ApiModelProperty(value="外键ID",required=false)
    private BigDecimal foreignKeyId;

    /**
     * 外键类型(FOREIGN_KEY_TYPE,VARCHAR,255)
     */
    @ApiModelProperty(value="外键类型",required=false)
    private String foreignKeyType;

    /**
     * 方法名，包含完整路径(METHOD_NAME,VARCHAR,255)
     */
    @ApiModelProperty(value="方法名，包含完整路径",required=false)
    private String methodName;

    /**
     * 方法描述(METHOD_DESCRIPTION,VARCHAR,50)
     */
    @ApiModelProperty(value="方法描述",required=false)
    private String methodDescription;

    /**
     * 执行时长(EXE_COST,DECIMAL,38)
     */
    @ApiModelProperty(value="执行时长",required=false)
    private BigDecimal exeCost;

    /**
     * 文件路径(FILE_PATH,VARCHAR,255)
     */
    @ApiModelProperty(value="文件路径",required=false)
    private String filePath;

    /**
     * 新增时间(INSERT_TIME,TIMESTAMP,7)
     */
    @ApiModelProperty(value="新增时间",required=false)
    private Date insertTime;

    /**
     * 新增用户(INSERT_USERNAME,VARCHAR,255)
     */
    @ApiModelProperty(value="新增用户",required=false)
    private String insertUsername;

    /**
     * 备注(REMARK,VARCHAR,255)
     */
    @ApiModelProperty(value="备注",required=false)
    private String remark;

    private static final long serialVersionUID = 1L;

    @Override
    public BigDecimal getId() {
        return this.logId;
    }

    @Override
    public void setId(BigDecimal logId) {
        this.logId = logId;
    }

    public BigDecimal getLogId() {
        return logId;
    }

    public void setLogId(BigDecimal logId) {
        this.logId = logId;
    }

    public String getLogContent() {
        return logContent;
    }

    public void setLogContent(String logContent) {
        this.logContent = logContent == null ? null : logContent.trim();
    }

    public BigDecimal getForeignKeyId() {
        return foreignKeyId;
    }

    public void setForeignKeyId(BigDecimal foreignKeyId) {
        this.foreignKeyId = foreignKeyId;
    }

    public String getForeignKeyType() {
        return foreignKeyType;
    }

    public void setForeignKeyType(String foreignKeyType) {
        this.foreignKeyType = foreignKeyType == null ? null : foreignKeyType.trim();
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName == null ? null : methodName.trim();
    }

    public String getMethodDescription() {
        return methodDescription;
    }

    public void setMethodDescription(String methodDescription) {
        this.methodDescription = methodDescription == null ? null : methodDescription.trim();
    }

    public BigDecimal getExeCost() {
        return exeCost;
    }

    public void setExeCost(BigDecimal exeCost) {
        this.exeCost = exeCost;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath == null ? null : filePath.trim();
    }

    public Date getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    public String getInsertUsername() {
        return insertUsername;
    }

    public void setInsertUsername(String insertUsername) {
        this.insertUsername = insertUsername == null ? null : insertUsername.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", logId=").append(logId);
        sb.append(", logContent=").append(logContent);
        sb.append(", foreignKeyId=").append(foreignKeyId);
        sb.append(", foreignKeyType=").append(foreignKeyType);
        sb.append(", methodName=").append(methodName);
        sb.append(", methodDescription=").append(methodDescription);
        sb.append(", exeCost=").append(exeCost);
        sb.append(", filePath=").append(filePath);
        sb.append(", insertTime=").append(insertTime);
        sb.append(", insertUsername=").append(insertUsername);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}